package sgi.message;

import java.util.List;




@SuppressWarnings("serial")
public class MessageSearch extends Message {
	
	private List<Integer> images;
	public int img;
	
	public MessageSearch(String dateFrom,String dateTo,String location)
	{
		super("select imageid from images where date between '" + dateFrom + "' and '" + dateTo + "' and location LIKE '%" + location + "%'");
	}
	
	public MessageSearch(String dateFrom,String dateTo)
	{
		super("select imageid from images where date between '" + dateFrom + "' and '" + dateTo + "'");
		System.out.println(dateFrom + " " + dateTo);
	}

	public List<Integer> getImages() {
		return images;
	}

	public void setImages(List<Integer> images) {
		this.images = images;
	}

}
